<script setup lang="ts">
//价格表
import { TabData } from "@/base/service/interface";
//传值
defineProps<{ data: TabData }>();
</script>
<template>
  <div class="price-table hide">
    <table>
      <tbody>
        <tr>
          <th>产品型号</th>
          <th>维修部件价格</th>
          <th>维修人工费</th>
          <th>合计费用</th>
        </tr>
        <tr>
          <td>{{ data.device }}</td>
          <td>
            <span
              >{{ data.component }} {{ data.memory }} {{ data.network }}</span
            >
            <span>￥{{ data.price }}</span>
          </td>
          <td>￥60.00</td>
          <td>￥{{ data.price ?? 0 + 60 }}</td>
        </tr>
      </tbody>
    </table>
  </div>
</template>
<style scoped lang="less">
.price-table {
  display: block;
  margin: 60px 0 20px;
  table {
    width: 100%;
    text-align: center;
    margin: 0;
    th {
      height: 50px;
      background: #f5f5f5;
      font-size: 16px;
      border: 1px solid #dcdcdc;
    }
    td {
      height: 100px;
      color: #969696;
      font-size: 15px;
      border: 1px solid #dcdcdc;
    }
  }
}
</style>
